import Mongoose from "mongoose";
import { Content, Message } from "../../entities/content";

export interface IContent extends Content, Mongoose.Document{};

export const contentSchema = new Mongoose.Schema<IContent>({
    title: String,
    class: String,
    data: String,
    time: String,
    author: String,
    comment: [String],
    like: Number,
    description: String
}, {
    versionKey: false
})



export interface IMeassage extends Message, Mongoose.Document{};

export const messageSchema = new Mongoose.Schema<IMeassage>({
    text: String,
    time: Date
}, {
    versionKey: false
})